#ifndef ADD_DISCARDDIALOG_H
#define ADD_DISCARDDIALOG_H



#include <wx/wx.h>
#include <wx/textctrl.h>
#include <wx/button.h>
#include <wx/stattext.h>
#include <wx/sizer.h>
#include <wx/datectrl.h> // 确保包含日期选择器头文件
#include <wx/spinctrl.h>

#include "../book_info.h"


class AddDiscardDialog : public wxDialog {
public:
    AddDiscardDialog(wxWindow* parent);

    // 获取用户输入的淘汰信息
    DiscardInfo GetDiscardInfo() const;

private:
    void OnOK(wxCommandEvent& event);
    void OnCancel(wxCommandEvent& event);

    wxTextCtrl* m_bookIdCtrl;
    wxSpinCtrl* m_quantityCtrl;
    wxDatePickerCtrl* m_dateCtrl;

    DECLARE_EVENT_TABLE()
};








#endif // ADD_DISCARDDIALOG_H